package com.vancouver.knows.business.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.vancouver.knows.business.bean.PostPrivacySettingInfo;

/**
 * Created by Chris Li on 2016-07-26.
 */
public class PostPrivacySettingHandler extends ACheckableJsonParser {

    private PostPrivacySettingInfo postPrivacySettingInfo;

    @Override
    protected void parserContent(JSONObject content) throws Exception {
        postPrivacySettingInfo = new PostPrivacySettingInfo();
        String privacySetting = content.getString("watch_list_public");
        postPrivacySettingInfo.setWatchListPublic(privacySetting);
    }

    public PostPrivacySettingInfo getPrivacySetting() {
        return postPrivacySettingInfo;
    }
}
